/**
 * 
 */
package net.wisos.opn.account.dao;

import java.util.List;

import net.wisos.opn.account.entity.Role;
import net.wisos.opn.account.entity.User;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * @author Liuye
 * 
 */
public interface UserDao extends PagingAndSortingRepository<User, Long> {

	Page<User> findByRoles(List<Role> roles, Pageable pageable);

	User findByLoginName(String loginName);
}
